package org.example.leetcode.common._enum;

import lombok.Data;

public enum DifficultyEnum implements BaseEnum<String,String>{
    EASY("EASY","简单","#00FF00",1),
    MEDIUM("MEDIUM","中等","#FFFF00",2),
    HARD("HARD","困难","#FF0000",3);
    private final String code;
    private final String name;
    private final String color;
    private final Integer score;

    private DifficultyEnum(String code,String name,String color,Integer score){
        this.code=code;
        this.name=name;
        this.color=color;
        this.score=score;
    }

    public String getColor() {
        return color;
    }

    public Integer getScore() {
        return score;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getName() {
        return name;
    }
    @Data
    public static class DifficultyEnumDto{
        private String code;
        private String name;
        private String color;
        private Integer score;
    }
}
